package com.ydgk.service;

import com.ydgk.bean.Bill;
import com.ydgk.dao.BillDao;

import java.util.List;

public class BillService {
    private BillDao billDao=new BillDao();

    public int save(Bill bill){
        return billDao.save(bill);
    }

    public List<Bill> findAll(){
        return billDao.findAll();
    }

    public List<Bill> paging (int pageNumber){
        return billDao.paging(pageNumber);
    }

    public int maxPage(String table){
        return billDao.maxPage(table);
    }

    public int total(){return billDao.total();}



}
